package m1.server.config.component.componentInterface;

import m2.component.ComponentInterface;
import m2.service.RequiredService;

public class DatabaseInterfaceRequired extends ComponentInterface{

	/**
	 * 
	 */
	public DatabaseInterfaceRequired(){
		
		//********queryReceiveService********
		RequiredService queryReceiveService = new RequiredService();
		queryReceiveService.setNameService("queryReceiveService");
		setService(queryReceiveService);		
		
		//********securityManagementService********
		RequiredService securityManagementService = new RequiredService();
		securityManagementService.setNameService("securityManagementService");
		setService(securityManagementService);		
		
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("queryReceiveService", "QueryReceive");
		serviceUsePorts("securityManagementService", "SecurityManagement");		
	}
}
